package ChangYongAPI;

import org.w3c.dom.ls.LSOutput;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class Test
{
//    public static void main(String[] args) throws CloneNotSupportedException {
//        A a = new A("张三");
//        A b = new A("张三");
//
//        System.out.println(a.equals(b));
//
////        a.clone();// 会报错 -> Alt + 回车 ->选第一个，就会在该方法定义的那一行生成hrows CloneNotSupportedException，表示抛出异常
//          a.clone();
//    }

    public static void main(String[] args)
    {
        BigDecimal i = new BigDecimal("0.1");
        BigDecimal j = new BigDecimal("0.3");
        BigDecimal k = i.divide(j, 3, RoundingMode.CEILING );
    }
}